using System;
using System.Diagnostics.CodeAnalysis;
using Avalonia;

namespace AYE_ClientSideAvalonia
{
    public class Program
    {
        // Initialization code. Don't use any Avalonia, third-party APIs or any
        // SynchronizationContext-reliant code before AppMain is called: things aren't initialized
        // yet and stuff might break.
        [STAThread]
        [ExcludeFromCodeCoverage]
        public static void Main(string[] args) => BuildAvaloniaApp()
            .StartWithClassicDesktopLifetime(args);

        //Avalonia 配置，请勿删除；视觉设计器也会使用。
        public static AppBuilder BuildAvaloniaApp()
        {
            var builder = AppBuilder
                .Configure<App>()
                .UsePlatformDetect()
                .With(new X11PlatformOptions { EnableMultiTouch = true, UseDBusMenu = true, })
                .WithInterFont()
                .UseSkia();

            return builder;
        }
    }
}
